package com.gifts.ui.page.selectafriend;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.TextField;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
/**
 * UI Class for JUpcomingBirthdayPanel
 * @author dmaung
 *
 */
public class JUpcomingBirthdayTopPanel  extends JPanel {
	

	private JButton showMore;


	private JComboBox dayCombobox;
	
	
	public JUpcomingBirthdayTopPanel() {
		
		JPanel mainPanel = new JPanel();
		JPanel leftPanel = new JPanel();
		JPanel rightPanel = new JPanel();
		showMore = new JButton("Show More");
		
		dayCombobox = new JComboBox();
		dayCombobox.addItem("10");
		dayCombobox.addItem("20");
		dayCombobox.addItem("30");
		dayCombobox.addItem("60");
		dayCombobox.addItem("90");
		
		leftPanel.add(new JLabel("Find Upcoming birthday "));
		leftPanel.add(dayCombobox);
		leftPanel.add(new JLabel(" days from now"));
		
		rightPanel.add(showMore);
		//clearButton = new JButton("Clear");
		FlowLayout leftLayout = new FlowLayout();
		leftLayout.setAlignment(FlowLayout.LEFT);
		
		leftPanel.setSize(new Dimension(700,300));
		
		FlowLayout rightLayout = new FlowLayout();
		rightLayout.setAlignment(FlowLayout.RIGHT);
		rightPanel.setLayout(rightLayout);
		
		
		BorderLayout borderLayout = new BorderLayout();
	
		setLayout(borderLayout);
		add(leftPanel,BorderLayout.WEST);
		add(rightPanel,BorderLayout.EAST);
		add(rightPanel);
		//add(clearButton);
	}
	

	public JComboBox getDayCombox() {
		return dayCombobox;
	}
	
	
	
	
	public JButton getShowMoreButton() {
		return showMore;
	}
	

}
